<div id="formKategori">
	<legend>Form Kategori</legend>
	<form id="formkategori" action="<?=$base_url?>ctrlpnl/kategori/saveData/<?=$editstatus?>" method="post" enctype="multipart/form-data">
		<input type="hidden" name="stateid" id="stateid" value="<?=$stateid?>">		
		<input type="hidden" name="category_code" id="category_code" value="<?=$category_code?>">		
		<label>Kode Kategori</label> :  <input type="text" name="category_an" value="<?=$category_code?>" disabled style="width:500px;"><br><br>
		<label>Nama Kategori</label> :  <input type="text" name="category_name" value="<?=$category_name?>" style="width:500px;">		
		<br>
	</form>
	<div style="padding-left:10px">
		<button id="simpan" class="l-btn l-btn-plain  hover"><span class="l-btn-left"><span style="padding-left: 20px;" class="l-btn-text icon-save">Simpan</span></span></button>	
	</div>
</div>

<script>
	
	$('#simpan').click(function(){
		INSPsubmitform('formkategori', function(resp){
			if(resp==1){
				//alert('Data Disimpan');
				location.reload();
				//$('#gridKategori').datagrid('reload');
			}
			else{
				alert(resp);
			}
		});
	});
</script>

